﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PubSubLite.Messaging
{
    /// <summary>
    /// Forwards messages on their way to the subscribers
    /// </summary>
    public interface IMessageDispatcher
    {
        /// <summary>
        /// When a message has been received from the channel, this method
        /// forwards it to the subscribers.
        /// </summary>
        /// <param name="message"></param>
        /// <param name="messageType"></param>
        void DispatchMessage(IMessageBase message, Type messageType);
    }
}
